module.exports = {
    egg: true,
    framework: 'react',
    devtool: process.env.BUILD_DEV === "dev" ? "eval-source-map" : false,
    entry: {
        include: [
            'app/web/page',
            {'admin': 'app/web/page/admin/admin.jsx?loader=false'}
        ],
        exclude: [
            'app/web/page/admin/pages'
        ],
        loader: {
            client: 'app/web/framework/entry/client-loader.js',
            server: 'app/web/framework/entry/server-loader.js'
        }
    },
    alias: {
        $asset: 'app/web/asset',
        $component: 'app/web/component',
        framework: 'app/web/framework',
        $common: 'app/web/common',
        $store: 'app/web/store',
        $page: 'app/web/page',
        $api: 'app/web/api',
        $config:'app/config'
    },
    dll: {
        name: 'dll02',
        lib: ['react', 'react-dom', 'jquery', 'axios', 'lodash', 'sweetalert2', 'antd']
    },
    loaders: {
        less: {
            options: {
                javascriptEnabled: true
            }
        }
    },
    plugins: {
        imagemini: false
    },
    done() {
        console.log('---webpack compile finish---');
    }
};
